﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using HeartLess.Managers;
using HeartLess.Core;
using HeartLess.LevelData;

namespace HeartLess.GameObjects
{
    public class Block : CollidableGameObject
    {
        private Texture2D _blockSprite;

        public Block(Point location, bool floating)
            : base(location)
        {
            addCollisionBarrier(this);
            _blockSprite = AssetManager.GetSpriteTexture(Level.NORMAL_BLOCK);
        }

        public override void Update(GameTime gameTime)
        {
            //do nothing
        }

        protected override void onMove()
        {
            //do nothing
        }

        protected override void handleCollision(CollidableGameObject collidedObject)
        {
            //do nothing
        }

        public override void Draw(SpriteBatch spriteBatch)
        {
            Screen.Draw(spriteBatch, Location, _blockSprite);
        }
    }
}
